from django.db import models


class Vocabulary(models.Model):
    category = models.CharField(max_length=50)
    subcategory = models.CharField(max_length=50)
    name = models.CharField(max_length=50)


class Word(models.Model):
    vocabulary = models.ManyToManyField(Vocabulary)

    word = models.CharField(max_length=50)
    soundmark = models.CharField(max_length=50, default='')
    meaning = models.CharField(max_length=300, default='') # 含义
    variety = models.TextField(default='')  # 变形
